<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>{$goods.title}</title>
		<link href="/static/lvshi_pc/css/person.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/swiper-bundle.min.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/animate.min.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/reset.min.css" rel="stylesheet" />
		<script src="/static/lvshi_pc/js/swiper-bundle.min.js"></script>
		<script src="/static/lvshi_pc/js/jquery.min.js"></script>
		<script src="/static/lvshi_pc/js/wow.min.js"></script>
		<script src="/static/lvshi_pc/js/changeWindow.js"></script>
		<script src="/static/layer/layer.js"></script>
		<script src="/static/global/js/global.js"></script>
		<script src="/static/elementUi/axios.min.js"></script>
		<script src="/static/elementUi/Api.js"></script>
	</head>
	<body>
		<header>
			{include file="public/header"}
		</header>
		<img src="/static/lvshi_pc/images/bannera_02.png" class="banner" alt="">

		<div class="benbox">
			<div class="wrap">
				<div class="pinbox">
					<img src="{$goods.image??'/static/lvshi_pc/images/chan_03.png'}" class="pinpic" alt="">
					<div class="pinyou">
						<div class="pintop">
							<div class="pintitle oneline">{$goods.title}</div>
							<div class="pinjia">
								￥<span>{$goods.price}</span>
							</div>
						</div>
						<div class="benfu">
							<p>
       							{$goods.des}
							</p>
						</div>
						<div class="limai" onclick="buy()">
							立即购买
						</div>
					</div>
				</div>
				
				<div class="wentitle">
					商品详情
				</div>
				<div class="lvfu">
					{$goods.content|raw}
				</div>
			</div>
		</div>
		
		<footer>
			{include file="public/footer"}
		</footer>
		<script>
			function buy() {
				Api.my("/index/order/add",{goods_id:"{$goods.id}"}).then(res=>{
					if (res.code == 1) {
						location.href = "/index/order/payment?order_id=" + res.data.order_id
					} else {
						showErrMsg(res.msg)
					}
				})
			}
		</script>
		<script type="text/javascript">
			// wow效果启用
			new WOW().init();
		</script>
	</body>

</html>